projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22a5482
)
Add more car/cdr examples to shortdoc
author
Lars Ingebrigtsen
<larsi@gnus.org>
Thu, 15 Jul 2021 16:32:34 +0000
(18:32 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Thu, 15 Jul 2021 16:32:34 +0000
(18:32 +0200)
* lisp/emacs-lisp/shortdoc.el (list): Add more car/cdr examples.
lisp/emacs-lisp/shortdoc.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/shortdoc.el
b/lisp/emacs-lisp/shortdoc.el
index dbf16967bcfe940c5954141c26574494f7d56742..3a32f63257338e30feb8ca82dfbae64eb07a6c16 100644
(file)
--- a/
lisp/emacs-lisp/shortdoc.el
+++ b/
lisp/emacs-lisp/shortdoc.el
@@
-503,9
+503,13
@@
There can be any number of :example/:result elements."
(flatten-tree
:eval (flatten-tree '(1 (2 3) 4)))
(car
- :eval (car '(one two three)))
+ :eval (car '(one two three))
+ :eval (car '(one . two))
+ :eval (car nil))
(cdr
- :eval (cdr '(one two three)))
+ :eval (cdr '(one two three))
+ :eval (cdr '(one . two))
+ :eval (cdr nil))
(last
:eval (last '(one two three)))
(butlast